home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / 4DXDEMO.ZIP / DEMO1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  706 b   |  36 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <conio.h>
  4. #include "bmall.h"
  5. #include "4dx.h"
  6. #include "proto.h"
  7. #include "support.h"
  8.  
  9. void main(void)
  10.    {
  11.    // Change into graphics mode
  12.    int ouractor = 0;
  13.  
  14.   _setvideomode(_MRES256COLOR);
  15.  
  16.    // Load the bitmaps
  17.    LoadBitmaps("meta.bin");
  18.    LoadFlats  ("flats.asc");
  19.  
  20.    // Initialize Renderer, Palette, tables, and map data.
  21.    Init4DX();
  22.    AssignPalette();
  23.    BuildTables(320,200);
  24.  
  25.    // Load actors, sectors, vertexes, and line data from a save file.
  26.    LoadGame("Game.0");
  27.  
  28.    // display the view until a key is pressed
  29.    while(!kbhit())
  30.       {
  31.       BuildViewBySector(ouractor,0);
  32.       }
  33.  
  34.    return;
  35.    }
  36.